import request from '@/utils/request'

export function getExamList() {
  return request({
    url: '/admin/getExamList',
    method: 'get'
  })
}

export function getExerciseList() {
  return request({
    url: '/admin/getExerciseList',
    method: 'get'
  })
}

export function getExamDetail(examId) {
  return request({
    url: '/admin/getExamDetail',
    method: 'get'
  })
}

export function addExam(data) {
  return request({
    url: '/admin/addExam',
    method: 'post',
    data
  })
}

export function deleteExam(data) {
  return request({
    url: '/admin/deleteExam',
    method: 'post',
    data
  })
}
